package shapewar.engine.model;

import shapewar.conf.Conf;
import shapewar.engine.intefac.Regedit;
import shapewar.engine.model.abst.ModelAdapter;
import shapewar.engine.presenter.Presenter;

public class VisibleArea extends ModelAdapter {
	Tank player;
	public VisibleArea(Presenter pst,Tank player) {
		super(pst,player._id,player._x,player._y,Conf.visible_area_radium, Conf.depth_visible_area);
		this.player = player;
	}
	
	@Override
	public void init() {
		pst.bridge.addView(pst.bridge.createVisibleAreaView(this));
		pst.regist(this, Regedit.IView);
	}
	
	@Override
	public void destory() {
		pst.bridge.removeView(getView());
		pst.registoff(this, Regedit.IView);
	}
	
}
